import fetch from 'common/src/utils/fetch'

export const getWithdrawRulesUrl = '/api/electionservice/elcMedWithdrawRules/list';

/**
 * 退课规则列表
 */
export function getWithdrawRules(data) {
    return fetch({
        url: '/api/electionservice/elcMedWithdrawRules/list',
        method: 'post',
        data: data
    });
}

/**
 * 新增
 */
export function addWithdrawRules(data) {
    return fetch({
        url: '/api/electionservice/elcMedWithdrawRules/add',
        method: 'post',
        data: data
    });
}

/**
 * 修改
 */
export function updateWithdrawRules(data) {
    return fetch({
        url: '/api/electionservice/elcMedWithdrawRules/update',
        method: 'post',
        data: data
    });
}

/**
 * 删除
 */
export function deleteWithdrawRules(data) {
    return fetch({
        url: '/api/electionservice/elcMedWithdrawRules/delete',
        method: 'post',
        data: data
    });
}

/**
 * 详情
 */
export function getDetailWithdrawRules(id) {
    return fetch({
        url: '/api/electionservice/elcMedWithdrawRules/getRule?id='+id,
        method: 'get'
    });
}




